Update the process marker so that the "broken by peer" status message is inserted...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 14 Sep 2011 22:57:57 +0000 (00:57 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 14 Sep 2011 22:57:57 +0000 (00:57 +0200)
lisp/ChangeLog
lisp/mail/smtpmail.el

index a2231b9afdead29acc9bca278a5297bf2a681ec4..02ca0f1d25609819e13a600b768b2eca24d67c7f 100644 (file)
@@ -2,6 +2,8 @@
 
        * mail/smtpmail.el (smtpmail-send-command): Don't include AUTH
        passwords in the log buffer.
+       (smtpmail-process-filter): Update the process marker so that the
+       "broken by peer" status message is inserted in the right place.
 
 2011-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 42c43c0951c264205cbd291c7c5ab3c37a73d17b..9fe19581e81cf1f5bed55e1011e6340ae1ae799a 100644 (file)
@@ -835,7 +835,8 @@ The list is in preference order.")
 (defun smtpmail-process-filter (process output)
   (with-current-buffer (process-buffer process)
     (goto-char (point-max))
-    (insert output)))
+    (insert output)
+    (set-marker (process-mark process) (point))))
 
 (defun smtpmail-read-response (process)
   (let ((case-fold-search nil)